import { Tools } from 'weaver-mobile';

/**
 * 绩效-方案指标项（有权限访问的）
 * jiansong 2020/2/12
 */
export const programAccessItemApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/programAccessItem',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-方案指标模板详情
 * jiansong 2020/2/17
 */
export const programItemDetailApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/programItemDetail',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-方案指标模板列表
 * jiansong 2020/2/14
 */
export const programItemListApi = params => {
    let options = {
        method: 'GET',
        url: '/api/workrelate/performance/programItemList',
        params: {...params}
    };
    return Tools.callApi(options);
};

/**
 * 绩效-方案指标项-操作
 * jiansong 2020/2/12
 */
export const programItemOperationApi = params => {
    let options = {
        method: 'POST',
        url: '/api/workrelate/performance/programItemOperation',
        params: {...params}
    };
    return Tools.callApi(options);
};